    public function //name_function//_excel() {
		$this->autoRender = false;
        $this->//Model//->recursive = 0;
		$//models// = $this->//Model//->find('all');
        
        App::import('Vendor','PHPExcel_php/PHPExcel');
        App::import('Vendor','PHPExcel_php/PHPExcel/Writer/Excel2007');
        $objPHPExcel = new PHPExcel();
        $objPHPExcel->setActiveSheetIndex(0);
        $objPHPExcel->getActiveSheet()->setTitle('//nameCaption//');
//th_attrs//      

        $count = 4;
        foreach ($//models// as $//model//){
//td_attrs//
			$count++;	
		}
                
        header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
        header('Content-Disposition: attachment;filename="//nameCaption//.xlsx"');
        header('Cache-Control: max-age=0'); 
        $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
        $objWriter->save('php://output');
	}
